home *** CD-ROM | disk | FTP | other *** search
/ Electronic Clipper 1997 January / Electronic Clipper 1997 January.iso / ideasrc / ace.dir / 00025_Script_25 < prev    next >
Text File  |  1996-12-16  |  4KB  |  143 lines

  1. on startmovie
  2.   global slider, toolH, toolV, gallery, holder
  3.   set slider = 0
  4.   set the locH of sprite 40 to toolH
  5.   set the locV of sprite 40 to toolV
  6.   set gallery = "slideshow"
  7.   set holder = "0"
  8. end
  9.  
  10. on stopmovie
  11.   global toolH, toolV
  12.   set toolH = the locH of sprite 40
  13.   set toolV = the locV of sprite 40
  14. end
  15.  
  16. on pressit button
  17.   puppetsound "clickdn"
  18.   repeat while the mousedown
  19.     set the visible of sprite button to false
  20.     updatestage
  21.   end repeat
  22.   set the visible of sprite button to true
  23.   puppetsound "clickup"
  24. end
  25.  
  26. on tools
  27.   repeat with n = 41 to 46
  28.     puppetsprite n, true
  29.   end repeat
  30.   repeat with n = 41 to 46
  31.     set the locV of sprite n to the locV of sprite 40 + 26
  32.   end repeat
  33.   set the locH of sprite 41 to the locH of sprite 40 
  34.   set the locH of sprite 42 to the locH of sprite 40 - 86
  35.   set the locH of sprite 43 to the locH of sprite 40 - 48
  36.   set the locH of sprite 44 to the locH of sprite 40 - 3
  37.   set the locH of sprite 45 to the locH of sprite 40 + 41
  38.   set the locH of sprite 46 to the locH of sprite 40 + 82
  39.   updatestage
  40. end tools
  41.  
  42. on rollem2
  43.   if soundbusy(1) then 
  44.     nothing
  45.   else
  46.     set the castnum of sprite 2 to 6
  47.   end if
  48.   if rollover (7) then 
  49.     go frame "center"
  50.     Set the locH of sprite 2 to the locH of sprite 1
  51.     Set the locV of sprite 2 to the locV of sprite 1
  52.     updatestage
  53.     if the mousedown then 
  54.       if sprite 2 intersects 3 then 
  55.         sound playFile 1, "gotem.aif"
  56.         puppetsprite 2, true
  57.         set the castnum of sprite 2 to 31
  58.         updatestage
  59.  
  60.       else
  61.         sound playFile 1, "guns.aif"
  62.       end if
  63.     end if
  64.   end if
  65.   
  66.   if rollover (8) then
  67.     go frame "right"
  68.     repeat while rollover (8)
  69.       if the mousedown then sound playFile 1, "guns.aif"   
  70.       set the locH of sprite 1 to ( the locH of sprite 1 - 10)
  71.       if the locH of sprite 1 < 5 then
  72.         set the locH of sprite 1 to 5
  73.       end if
  74.       set the locH of sprite 2 to the locH of sprite 1
  75.       set the locV of sprite 2 to the locV of sprite 1
  76.       updatestage
  77.     end repeat
  78.   end if
  79.   
  80.   if rollover (9) then 
  81.     go frame "left"
  82.     repeat while rollover (9) 
  83.       if the mousedown then sound playFile 1, "guns.aif"
  84.       set the locH of sprite 1 to ( the locH of sprite 1 + 10)
  85.       if the locH of sprite 1 > 600 then
  86.         set the locH of sprite 1 to 600
  87.       end if
  88.       set the locH of sprite 2 to the locH of sprite 1
  89.       set the locV of sprite 2 to the locV of sprite 1
  90.       updatestage
  91.     end repeat
  92.   end if
  93.   
  94.   if rollover (10) then 
  95.     go frame "up"
  96.     repeat while rollover (10)
  97.       if the mousedown then sound playFile 1, "guns.aif"
  98.       set the locV of sprite 1 to ( the locV of sprite 1 + 10)
  99.       if the locV of sprite 1 > 630 then
  100.         set the locV of sprite 1 to 630
  101.       end if
  102.       set the locH of sprite 2 to the locH of sprite 1
  103.       set the locV of sprite 2 to the locV of sprite 1
  104.       updatestage
  105.     end repeat
  106.   end if
  107.   
  108.   if rollover (11) then 
  109.     go frame "down"
  110.     repeat while rollover (11)
  111.       if the mousedown then sound playFile 1, "guns.aif"      
  112.       set the locV of sprite 1 to ( the locV of sprite 1 - 10)
  113.       if the locV of sprite 1 < -230 then
  114.         set the locV of sprite 1 to -230
  115.       end if
  116.       set the locH of sprite 2 to the locH of sprite 1
  117.       set the locV of sprite 2 to the locV of sprite 1
  118.       updatestage
  119.     end repeat
  120.   end if
  121. end
  122.  
  123.  
  124.  
  125. on keyDown 
  126.   if the key = 1 then set the soundLevel to (1)
  127.   if the key = 2 then set the soundLevel to (2)
  128.   if the key = 3 then set the soundLevel to (3)
  129.   if the key = 4 then set the soundLevel to (4)
  130.   if the key = 5 then set the soundLevel to (5)
  131.   if the key = 6 then set the soundLevel to (6)
  132.   if the key = 7 then set the soundLevel to (7)
  133.   if the key = "S" then
  134.     if the volume of sound 2 = 0 then
  135.       set the volume of sound 2 to the soundlevel * 36
  136.     else set the volume of sound 2 to 0
  137.   end if
  138. end keydown
  139.  
  140.  
  141.  
  142.  
  143.